<%@ control language="C#" autoeventwireup="true" codefile="Login.ascx.cs" inherits="_controls_Login" %>
<asp:label runat="server" id="lblEmail">Email</asp:label>
<asp:textbox maxlength="100" runat="server" id="txtEmail" validationgroup="login"></asp:textbox>
<asp:requiredfieldvalidator runat="server" id="rfvEmail" text="*" validationgroup="login"
    tooltip="Email is required" display="dynamic" controltovalidate="txtEmail"></asp:requiredfieldvalidator>
<asp:regularexpressionvalidator id="revEmail" runat="server" controltovalidate="txtEmail"
    display="Dynamic" tooltip="Email is not valid" validationexpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
    validationgroup="login">*</asp:regularexpressionvalidator>
<asp:label runat="server" id="lblPassword">Password</asp:label>
<asp:textbox runat="server" id="txtPassword" validationgroup="login" textmode="Password"
    maxlength="40"></asp:textbox><asp:requiredfieldvalidator runat="server" id="rfvLogin"
        controltovalidate="txtPassword" text="*" tooltip="Password is required" validationgroup="login"></asp:requiredfieldvalidator>
<asp:checkbox runat="server" id="chkRemember" text="Remember me" />
<asp:button runat="server" id="btnLogin" text="  Go!  " validationgroup="login" onclick="btnLogin_Click" />